package com.example.test.controller;


import com.example.test.entity.ClickView;
import com.example.test.service.IClickViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/ClickView")
public class ClickViewController {
    @Autowired
    private IClickViewService iClickViewService;

    @RequestMapping(value = "query", method = RequestMethod.POST)
    private List<ClickView> get() {
        return iClickViewService.get();
    }
}
